/**
 * actions 
 */
export default {
    showLoading({
      commit
    }, txt) {
      //提交一个请求给vuex，让vuex去改调用mutation里面的showLoading去改变
      commit("showLoading", txt);
    },
    hideLoading({
      commit
    }) {
      commit("hideLoading");
    },
    showPreviewImage({
      commit
    }, config) {
      commit("showPreviewImage", config);
    },
    hidePreviewImage({
      commit
    }) {
      commit("hidePreviewImage");
    },
    showActionSheet({
      commit
    }, config) {
      commit("showActionSheet", config);
    },
    hideActionSheet({
      commit
    }) {
      commit("hideActionSheet");
    }
  }